# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-pytest-mock
pkgver=3.2.0
pkgrel=0
pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
options="!check" # Fails
url="https://github.com/pytest-dev/pytest-mock"
arch="noarch"
license="MIT"
depends="py3-pytest"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-$pkgver.tar.gz"
builddir="$srcdir/pytest-mock-$pkgver"

replaces="pytest-mock" # Backwards compatibility
provides="pytest-mock=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1ff442e26339ac41414a8678303fbc7eab573964661c664ef029c3b3377df4ab40173976316ef99e49dd208dc1e3c7cd0a0090f5453865343090cc9439f85fa9  pytest-mock-3.2.0.tar.gz"
